<?php
declare (strict_types=1);

namespace app\admin\model\Live;

use app\admin\model\User;
use app\common\model\TimeModel;

/**
 * @mixin \think\Model
 */
class LiveSpeak extends TimeModel
{
    protected $name = "live_speak";

    protected $deleteTime = "delete_time";

    /**关联直播表
     * Author:Williamg
     */
    public function live()
    {
        $this->belongsTo(Live::class,'live_id','id');
    }

    /**关联用户表
     * Author:Williamg
     */
    public function user()
    {
        $this->belongsTo(User::class,'user_id','id');
    }

}
